<template>
  <view class="content">
    <tabbar />
    <!-- <text>首页</text>
    <button @click="routerTo('/pagesA/test1/index')">跳转商品详情</button>
    <button @click="getRoutes">获取路由栈</button> -->
  </view>
</template>

<script>
import tabbar from '@/components/tabbar/index.vue'
import { routerTo, getRoute } from '@/utils/router.js'
export default {
  name: 'Index',
  components: {
    tabbar
  },
  data() {
    return {
      title: "Hello"
    }
  },
  // onLoad() {
  //   uni.hideTabBar()
  // },
  // onHide() {
  //   uni.hideTabBar()
  // },
  methods: {
    routerTo,
    getRoutes() {
      const { routes } = getRoute()
      console.log(routes)
    }
  }
}
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin: 200rpx auto 50rpx auto;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
